# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-syslog-rfc5424-formatter
_pkgname=syslog-rfc5424-formatter
pkgver=1.2.3
pkgrel=5
pkgdesc='Logging formatter which produces well-formatted RFC5424 Syslog Protocol messages.'
arch=('any')
url='https://pypi.org/project/syslog-rfc5424-formatter/#files'
license=('ISC')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('af86f8cb00cfb659614a126fc987b2217842671e1e02aa96db45154ee94ed69e2d7a5cd262e6b18b987168f386d5c547f0740ce319d57d62c1fa4e16ae90a391')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

